package com.nbicc.newsattachments.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @Author: lilingyan
 */
@Data
public class NewsAttachments {

    public final static String FIELD_NEWS_ID = "newsId";
    public final static String FIELD_ATTACHMENT_ID = "attachmentId";

    private int id;
    @JsonSerialize(using= ToStringSerializer.class)
    private long newsId;
    @JsonSerialize(using= ToStringSerializer.class)
    private long attachmentId;

}
